package com.hp.easyBuy.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hp.easyBuy.entity.TOrder;

import java.util.Map;


public interface OrderService extends IService<TOrder> {
    //购物车结算生成订单列表
    public boolean account(Long userId, Long addressId);

    //订单列表分页条件查询
    public Page<TOrder> page(Integer currentPage, Integer pageSize, Map<String,Object> params);

    //确认收货
    public boolean update(Long id);


    //获取订单详情
   public TOrder details(Integer id);

       //购物车结算功能
    public boolean settle(Long userid,Long addressid);
}
